server {
    listen {{inventory_hostname}}:{{OPENVPNMONITOR_PORT}};
    server_name _;

    auth_basic "User Authentication";
    auth_basic_user_file /etc/nginx/pass.db;

    location / {
        proxy_pass http://127.0.0.1:{{OPENVPNMONITOR_PORT}};
        proxy_read_timeout 180s;
        proxy_redirect off;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

}
